<div ng-controller="amendApartmentController">
    <div class="apart-title-box">
        <div class="apart-title-info">
            房源基本信息
        </div>
        <div class="base-center-top-content">
            <div style="width: 600px;margin: auto;">
                <div class="base-center-row-content">
                    <div class="base-title">
                        房源编号：
                    </div>
                    <input class="input-info" disabled='disabled' type="text" ng-model="apartmentInfoModel.num" ng-value="apartmentInfoModel.num">
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        社区：
                    </div>
                    <select class="input-info  pro-write-base-backimg"
                            ng-model="apartmentInfoModel.community"
                            ng-change="setupCommunity(apartmentInfoModel.community)"
                            ng-options="community.name for community in communityList">
                        <option  ng-show="false" disabled = "disabled" value="">{{apartmentInfoModel.community.name?apartmentInfoModel.community.name:"请选择"}}</option>
                    </select>
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        楼栋编号：
                    </div>
                    <input class="input-info" type="text" ng-model="apartmentInfoModel.buildingId">
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        楼栋名称：
                    </div>
                    <input class="input-info" type="text" ng-model="apartmentInfoModel.buildingName">
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        房源名称：
                    </div>
                    <input class="input-info" type="text" ng-model="apartmentInfoModel.name" ng-value="apartmentInfoModel.name">
                </div>

                <div class="base-center-row-content-h">
                    <div class="base-title">
                        房源价格：
                    </div>
                    <input class="input-info" type="text" ng-model="apartmentInfoModel.price" ng-value="apartmentInfoModel.price">
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        房源面积：
                    </div>
                    <input class="input-info" type="text" ng-model="apartmentInfoModel.area" ng-value="apartmentInfoModel.area">
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        房源所在地：
                    </div>
                    <select class="pro-write-base-text-sel  pro-write-base-backimg pro-write-base-backimg-short"
                            ng-model="apartmentInfoModel.province"
                            ng-change="setupProvince(apartmentInfoModel.province)"
                            ng-options="province.provinceName for province in citys.province">
                        <option  ng-show="false" disabled="disabled" value=''>{{current_province.provinceName?current_province.provinceName:"请选择"}}</option>
                    </select>
                    <select class="pro-write-base-text-sel  pro-write-base-backimg pro-write-base-backimg-short" ng-model="apartmentInfoModel.city"
                            ng-change="setupCity(apartmentInfoModel.city)"
                            ng-options="city.cityName for city in citysModel">
                        <option  ng-show="false" disabled="disabled" value=''> {{current_city.cityName?current_city.cityName:"请选择"}} </option>
                    </select>
                    <select class="pro-write-base-text-sel  pro-write-base-backimg pro-write-base-backimg-short" ng-model="apartmentInfoModel.district"
                            ng-change="setupDistrict(apartmentInfoModel.district)"
                            ng-options="district.districtName for district in districtModel">
                        <option  ng-show="false" disabled="disabled" value=''> {{current_district.districtName?current_district.districtName:"请选择"}} </option>
                    </select>
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        房源地址：
                    </div>
                    <input class="pro-write-base-text-sel-a  pro-write-base-backimg-a pro-write-base-backimg-short-a" ng-model="apartmentInfoModel.address" ng-value="apartmentInfoModel.address">
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        周边地铁：
                    </div>
                    <!--<select class="pro-write-base-text-sel-d  pro-write-base-backimg-d pro-write-base-backimg-short-d">-->
                    <!--<option  ng-show="false"  value=''> 请选择</option>-->
                    <!--</select>-->
                    <input class="pro-write-base-text-sel-d  pro-write-base-backimg-d pro-write-base-backimg-short-d" placeholder="请输入地铁线路" ng-model="subwayLine" ng-value="subwayLine">
                    <!--<select class="pro-write-base-text-sel-d  pro-write-base-backimg-d pro-write-base-backimg-short-d">-->
                    <!--<option  ng-show="false"  value=''> 请选择 </option>-->
                    <!--</select>-->
                    <input class="pro-write-base-text-sel-d  pro-write-base-backimg-d pro-write-base-backimg-short-d" ng-model="subwayStation" placeholder="请输入地铁站" ng-value="subwayStation">

                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        交通距离：
                    </div>
                    <input class="input-info" type="text" ng-model="apartmentInfoModel.subwayDistance" ng-value="apartmentInfoModel.subwayDistance">
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        房源户型：
                    </div>
                    <input class="input-info" type="text" ng-model="apartmentInfoModel.type" ng-value="apartmentInfoModel.type">
                </div>
                <div class="base-center-row-content-h">
                    <div class="base-title">
                        房源楼层：
                    </div>
                    <input class="input-info" type="text" ng-value="buildFloor" placeholder="1/25层" ng-model="buildFloor">
                </div>
                <div class="base-center-row-content-l" id="tagsInfo">
                    <div class="base-title tag-info">
                        房源标签：
                    </div>
                    <div class="pro-write-label-box-t">
                        <span class="label-list-f" ng-class="apartmentInfoModel.tags.indexOf('十分钟地铁') == -1?'':'active'">十分钟地铁</span>
                        <span class="label-list-s" ng-class="apartmentInfoModel.tags.indexOf('独卫') == -1?'':'active'">独卫</span>
                        <span class="label-list-f" ng-class="apartmentInfoModel.tags.indexOf('集体供暖') == -1?'':'active'">集体供暖</span>
                        <span class="label-list-f" ng-class="apartmentInfoModel.tags.indexOf('独立阳台') == -1?'':'active'">独立阳台</span>

                    </div>
                    <div class="pro-write-label-box-b">
                        <span class="label-list-f" ng-class="apartmentInfoModel.tags.indexOf('独立供暖') == -1?'':'active'">独立供暖</span>
                        <span class="label-list-f" ng-class="apartmentInfoModel.tags.indexOf('智能设备') == -1?'':'active'">智能设备</span>
                    </div>
                </div>
                <div class="base-center-row-content-img">
                    <div class="base-title img-app ">
                        房源图片：
                    </div>

                    <div class="pro-write-picture" style="    position: relative;left: 276px;">
                        <div class="pro-write-arrow" ng-click="to_left_image_container()">
                            <span  class="fa fa-angle-left fa-3x pro-arrow"></span>
                        </div>
                        <div class="base-center-row-content-img-h">
                            <div class="pro-write-picture">
                                <div id='imageContainer' class="pro-write-picture-content"
                                     ng-class="{true: 'pro-write-picture-right'}[upload.pictures.length >= 3]">
                                    <div ng-repeat="number in [1, 2 ,3 ,4 ,5 ,6]" class="pro-write-pictures">
                                        <div class="pro-write-pictures-content"  ng-class="upload.pictures.length >= number?'pro-logo-completed':''" id="proPicture{{number}}">
                                            <input onchange='angular.element(this).scope().uploadApartmentPictures(this)'
                                                   ng-show="upload.pictures.length + 1 >= number" type="file"
                                                   accept="image/png,image/gif"
                                                   class="pro-logo-file">
                                            <img ng-show="upload.pictures.length + 1 >= number"
                                                 class="pro-logo-plus-img"
                                                 ng-src="{{upload.pictures.length  >= number ? upload.pictures[number-1]:'img/apament/plus.png'}}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="pro-write-arrow-l" ng-click="to_right_image_container()">
                            <span class="fa fa-angle-right fa-3x pro-arrow"></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="apart-title-info">
            房源设备信息
        </div>
        <div class="base-center-bottom-content">
            <div style="width: 600px;margin: auto;">

            <div class="pro-equip-info-box">
                <div class="base-title-l">
                    房源周边：
                </div>
                <textarea class="input-content" ng-model="apartmentInfoModel.around">{{apartmentInfoModel.around}}</textarea>
            </div>
            <div class="pro-equip-info-box-l">
                <div class="base-title-l">
                    房源交通：
                </div>
                <textarea class="input-content" ng-model="apartmentInfoModel.traffic">{{apartmentInfoModel.traffic}}</textarea>
            </div>
            <div class="pro-equip-info-box-r" id="facilities">
                <span class="base-title tag-info" >
                    房源配置：
                </span>
                <div class="pro-write-label-box-t" >
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('床') == -1?'':'active'" >床</div>
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('书柜') == -1?'':'active'">书柜</div>
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('书桌') == -1?'':'active'">书桌</div>
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('Wi-Fi') == -1?'':'active'">Wi-Fi</div>
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('洗衣机') == -1?'':'active'">洗衣机</div>
                </div>
                <div class="pro-write-label-box-b" id="text2">
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('热水器') == -1?'':'active'">热水器</div>
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('空调') == -1?'':'active'">空调</div>
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('微波炉') == -1?'':'active'">微波炉</div>
                    <div class="label-list-e" ng-class="apartmentInfoModel.facilities.indexOf('智能锁') == -1?'':'active'">智能锁</div>
                </div>
            </div>
            <div class="btn-contain">
                <button class="button-sty" value="" ng-click="submitAmendApartinfo(apartmentInfoModel)">保存</button>
            </div>


        </div>
    </div>
    </div>
</div>